home *** CD-ROM | disk | FTP | other *** search
Text File | 1985-11-08 | 549 b | 42 lines | [TEXT/MACA] |
- # include "MacLuff.h"
-
- /* Prints out an image of th board */
- utboard(){
- int x, y;
-
- HideCursor();
-
- EraseRect(&the_w->portRect);
-
- draw_holes();
-
- for(y = 0; y < YZIZE; y++){
- for(x = 0; x < XZIZE; x++){
- switch(board[x][y]){
- case ' ':
- draw_empty(x, y);
- break;
- case 'o':
- draw_o(x, y);
- break;
- case 'x':
- draw_x(x, y);
- break;
- }
-
- }
- }
- ShowCursor();
- }
-
- draw_holes(){
- int x, y;
-
- for(x = 0; x < 4; x++){
- PenPat(&QD->gray);
- PaintOval(&hole_r[x]);
- PenPat(&QD->black);
- FrameOval(&hole_r[x]);
- }
- }
-